﻿#ifndef SAVE_H
#define SAVE_H

#include <QWidget>
#include <QSqlDatabase>  //数据库
#include <QSqlError>     //数据库错误信息
#include <QSqlQuery>     //执行SQL语句
#include <QPainter>
#include<QDebug>        //调试输出
#include<QMessageBox>   //信息框

namespace Ui {
class Save;
}

class Save : public QWidget
{
    Q_OBJECT
    
public:
    explicit Save(QWidget *parent = Q_NULLPTR);
    ~Save();

    void setData(int shang,int xia, int dong,QString benName, QString what);

private slots:
    void on_pushButton_cancel_clicked();
    void on_pushButton_save_clicked();
    
    void paintEvent(QPaintEvent *event);
    void closeEvent(QCloseEvent *event);

private:
    Ui::Save *ui;
    
    int num[3];        //本卦上下动
};

#endif // SAVE_H
